home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickTime / Programming Stuff / Sample Code / Movie Toolbox / Inside Mac Movie Toolbox Code / mtb.h < prev    next >
Encoding:
Text File  |  1994-12-05  |  1.7 KB  |  67 lines  |  [TEXT/MPS ]

  1. /*
  2.   File:            mtb.h
  3.   Contains:        Header File for the Inside Mac Movie Toolbox Code
  4.   Written by:    DTS and QT Engineering
  5.   Copyright:    © 1992-1994 by Apple Computer, Inc., all rights reserved.
  6.   Change History (most recent first):
  7.   <1>         12/4/94    khs        changed the format of the file to the new look and feel
  8.   To Do:
  9. */
  10.  
  11.  
  12. //  This file contains all of the prototypes for the Inside Macintosh
  13. //  Movie Toolbox Example code.
  14.  
  15.  
  16. // INCLUDES
  17. #include <Fonts.h>
  18. #include <Quickdraw.h>
  19. #include <GestaltEqu.h>
  20. #include <Script.h>
  21. #include <Packages.h>
  22. #include <Resources.h>
  23. #include <Sound.h>
  24. #include <ToolUtils.h>
  25. #include <SegLoad.h>
  26. #include <FixMath.h>
  27.  
  28. #include <ImageCompression.h>
  29. #include <Movies.h>
  30.  
  31.  
  32. // FUNCTION PROTOTYPES
  33. Boolean IsQuickTimeInstalled(void);
  34. Movie GetMovie(void);
  35. void CheckError(OSErr error,
  36.                 Str255 displayString);
  37.  
  38. void InitMovieToolbox(void);
  39. void CreateMyCoolMovie(void);
  40. void CreateMyVideoTrack(Movie theMovie);
  41. void AddVideoSamplesToMedia(Media theMedia,
  42.                             const Rect* trackFrame);
  43. void DrawFrame(const Rect* trackFrame,
  44.                long curSample);
  45. void CreateMySoundTrack(Movie theMovie);
  46. void CreateSoundDescription(Handle sndHandle,
  47.                             SoundDescriptionHandle sndDesc,
  48.                             long* sndDataOffset,
  49.                             long* numSamples,
  50.                             long* sndDataSize);
  51. long GetSndHdrOffset(Handle sndHandle);
  52.  
  53. void DoUpdate(WindowPtr theWindow,
  54.               Movie theMovie);
  55.  
  56. pascal OSErr MyCoverProc(Movie aMovie,
  57.                          RgnHandle changedRgn,
  58.                          long refcon);
  59. pascal OSErr MyUnCoverProc(Movie aMovie,
  60.                            RgnHandle changedRgn,
  61.                            long refcon);
  62. void InitCoverProcs(WindowPtr aWindow,
  63.                     Movie aMovie);
  64.  
  65. void CreateTrackMatte(Track theTrack);
  66. void UpdateTrackMatte(Track theTrack);
  67.